(function() {
    function setRem(){
        var n, o = window.innerWidth,winWidth = window.screen.width;
        var  html = document.getElementsByTagName("html")[0]
        n =   Math.round(o / 19.2) ;
        o > 750 && winWidth > 750 ? html.style.fontSize=n + "px" : html.style = null
    }
    setRem();
    window.addEventListener("resize", function() {
        setRem()
    }, false);
})();